/*
* Copyright (c) 2016 . All Rights Reserved.
*/
package com.cgmnx.admin.web.model.param;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * @author: created  Date: 16/12/12 Time: 下午2:26
 * @version: 1.0
 */
@Setter
@Getter
@ToString
public class UserParam {

    private Integer id;

    /**
     * 用户邮箱
     */
    @NotBlank(message = "邮箱不能为空")
    @Pattern(regexp = "^\\w+([-+.]\\w+)*@\\w+([-.]\\w+)*\\.\\w+([-.]\\w+)*$", message = "邮箱不能格式不对")
    private String userEmail;

    /**
     * 用户手机号
     */
    private String userPhone;


    private String userId;

    @NotBlank(message = "密码不能为空")
    private String password;

    @NotBlank(message = "密码不能为空")
    private String repassword;

    @NotBlank(message = "真实姓名不能为空")
    private String userName;

    @NotNull(message = "角色不能为空")
    private Integer roleId;

    private Integer userStatus;

    private String desc;


}